package de.lusiardi.webdav.xml;

import de.lusiardi.webdav.xml.Error;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * http://www.webdav.org/specs/rfc4918.html#ELEMENT_propstat
 *
 * @author Joachim Lusiardi
 */
@XmlRootElement(name = "propstat")
public class PropStat {

    @XmlElement(required = true)
    private Prop prop;

    @XmlElement(required = true)
    private Status status;

    @XmlElement(required = false)
    private Error error;

    @XmlElement(required = false)
    private ResponseDescription responseDescription;

    public Prop getProp() {
        return prop;
    }

    public void setProp(Prop prop) {
        this.prop = prop;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public Error getError() {
        return error;
    }

    public void setError(Error error) {
        this.error = error;
    }

    public ResponseDescription getResponseDescription() {
        return responseDescription;
    }

    public void setResponseDescription(ResponseDescription responseDescription) {
        this.responseDescription = responseDescription;
    }
}
